package com.jdqzyy.noobnoob.example.controller;

import com.jdqzyy.noobnoob.common.annotation.ResponseResult;
import com.jdqzyy.noobnoob.example.entity.Designer;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Zyy
 * @Description:这是一个非常简单的springboot案例
 * @date 2020/11/21上午12:10
 * @slogan 天下风云出我辈，一入代码岁月催
 */
@RestController
@RequestMapping("/test")
@Slf4j
@ResponseResult
public class ExampleController {

    @GetMapping("/jdq")
    public Designer getDesignerJdq() {
        return new Designer().setName("Jdq").setSynopsis("A good person");
    }
    @GetMapping("/zyy")
    public Designer getDesignerZyy()  {
        int a = 1/0;
        return new Designer().setName("Zyy").setSynopsis("A good person");
    }

}
